-
Notifications
You must be signed in to change notification settings - Fork 2k
supporting valid email (i.e. root@admin) #940
Conversation
@@ -282,7 +282,7 @@ describe('User Model Unit Tests:', function () { | |||
}); | |||
}); | |||
|
|||
it('should not allow more than 3 or more repeating characters - "P@$$w0rd!!!"', function (done) { | |||
it('should not allow a password with more than 3 or more repeating characters - "P@$$w0rd!!!"', function (done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just "3 or more", not "more than 3 or more", no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed and squashed
LGTM. With the exception of Ilan's comment on the wording of that test. |
311e80d
to
2c65acb
Compare
@ilanbiala sure, but this one gets applied for 0.4.2 or 0.5? |
LGTM. I'd say 0.4.2 |
I agree. If we want to have items for a big/major release like 0.5 then I suggest we maybe have an 0.5 Roadmap issue where we can put these items on a taskboard, we can discuss them with regards to implementations etc, and once we're near that release we can go ahead and start working on a PR. And if some PRs get submitted which we think are obvious for an 0.5 then we should probably state that quite soon before contributors are investing time in contributing code which may never see it way into master, or will be very late in time, which is most often "too late". |
@lirantal I'll second that. If there are some major changes which would constitute a new minor version bump, then bump it then. |
@ilanbiala how about we move the options for the validator package as seen here /**
* A Validation function for local strategy email
*/
var validateLocalStrategyEmail = function (email) {
return ((this.provider !== 'local' && !this.updated) || validator.isEmail(email, {require_tld: false}));
}; to an external configuration variable, and revert the changes to make so that we have WDYT? |
@lirantal I'm fine with not requiring a TLD, but it can only be published as part of 0.5.0. We don't need to wait for an accumulation of features for a release, we can just push 0.4.2 out sometime next week and then release 0.5.0 with whatever breaking changes we have. |
Sure, although I don't understand why you insist of pushing this feature in 0.5.0 even if it doesn't break anything. It's just a configuration option that defaults to 0.4.1 default so it doesn't break anything. |
@lirantal the configuration option seems unnecessary to me when we can just push it in a more intuitive and standards-conforming way as part of 0.5.0. Since it is a logical change and it changes functionality, it needs to be in a minor release according to semver. |
Cool. |
Ok |
@jloveland Just a heads up, the commit message guidelines have updated for any changes going into 0.5.0. Since this PR is just waiting the 0.4.2 release to get merged, if you want to edit the commit message it shall be ready. Thanks! |
@jloveland Can you update the commit message and rebase? I think this is good to go. |
@codydaig I will sometime in the next couple days. |
Supporting valid email (i.e. root@admin) according to HTML5 and RFC 822 proposed by @jloveland Fixes meanjs#934
2c65acb
to
33258f1
Compare
@codydaig ready to go! |
@lirantal LGTM |
LGTM. |
LGTM |
Thanks guys, merging. |
supporting valid email (i.e. root@admin)
supporting valid email (i.e. root@admin) according to HTML5 and RFC 822
fixing #934